package Song.Han.demo02;

public class MyThread02 extends Thread{
    @Override
    public void run(){
        //获取线程名称
/*
        String name = getName();
        System.out.println(name);
*/
        //currentThread()返回的是当前线程对象
        System.out.println(Thread.currentThread().getName());
    }
}
